﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.cruxomatic.DTOs;
using com.cruxomatic.BusinessObjects;

namespace com.cruxomatic.logging
{
    public class ApplicationLogMessageFacade
    {
        public void AddApplicationLogMessage(ApplicationLogMessageInformation applicationLogMessage)
        {
            ApplicationLogQueries query = new ApplicationLogQueries();

            ApplicationLogMessage dbApplicationLogMessage = new ApplicationLogMessage(); 
            dbApplicationLogMessage = ApplicationLogClassConverter
            .CopyApplicationLogMessageInformationToApplicationLogMessage(applicationLogMessage, dbApplicationLogMessage);
            query.AddApplicationLogMessage(dbApplicationLogMessage);
        }
    }
}
